﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Import Namespace="System.Data" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MemberSortOrderUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.UserManagement.MemberSortOrder.MemberSortOrderUserControl" %>
<%@ Register Src="../LeftMenu/LeftMenuUserControl.ascx" TagName="LeftMenuUserControl"
    TagPrefix="uc1" %>
<%--       <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.1.min.js"></script>
	   <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.1-vsdoc.js"></script>--%>
    <script type="text/javascript" src="/_layouts/JM.JCY.Resource/scripts/jquery.dragsort.js"></script>
    <style type="text/css">
	   body{font-size:12px;}
		ul,ol { margin:0px; padding:0px; margin-left:20px; }
		#list2 { width:640px; list-style-type:none; margin:0px; }
		#list2 li { float:left; padding:5px; width:320px; height:40px; }
		#list2 div { height:35px; line-height:35px; vertical-align:middle;  border:solid 1px black; background-color:#e0e0e0; }
		.placeHolder div { background-color:white !important; border:dashed 1px gray !important; }
		
		#list2 div {overflow:hidden;text-align:left; padding-left:0.25em;}
	</style>

 <div>
    <table class="main">
        <tr>
            <td valign="top" width="25%" runat="server" id="tdLeftMenu">
                <uc1:LeftMenuUserControl ID="LeftMenuUserControl1" runat="server" />
            </td>
            <td valign="top" width="75%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2 class="title">
                                            干警排序</h2>
                                    </td>
                                
                                     
                                  </tr>
                                  <tr><td><br /><hr /></td></tr>
                                  <tr><td><asp:DropDownList ID ="ddlDepartment" runat="server" 
                                          onselectedindexchanged="ddlDepartment_SelectedIndexChanged" Width="320" AutoPostBack="true">
                                             
                                          </asp:DropDownList></td></tr>
                            </table>
                            <br />
                            <span id="spResult" class="NoRecordMsg">还没有干警</span>
                            <div>
	        <ol id="list2">
		      
		        <asp:Repeater runat="server" ID="RpList">
		        <ItemTemplate>
		        <li>
		            <div>
		                <span title="<%#((DataRowView)Container.DataItem)[1]%>"><%#((DataRowView)Container.DataItem)[1]%></span>
                  
		                <input type="hidden" name="sortId" value="<%#((DataRowView)Container.DataItem)[0]%>" />
		            </div>
		        </li>
		        </ItemTemplate>
		        </asp:Repeater>
	        </ol>
    	
	  

	        <script type="text/javascript">
	            $("#list2").dragsort({ dragSelector: "div", dragBetween: true, dragEnd: saveOrder2, placeHolderTemplate: "<li class='placeHolder'><div></div></li>" });
	            function saveOrder2() { }
	        </script>
	        <div style="clear:both;"></div>
	        
	        <div style="text-align: right">
                 <asp:ImageButton ID="imgSave" runat="server" 
                     ImageUrl="~/_layouts/JM.JCY.Resource/images/save.png" onclick="imgSave_Click"
                                          />
         
             <asp:ImageButton ID="imgCancel" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/cancel.png"
                                            OnClick="imgCancel_Click" />
	        </div>
        </div>
                        </td>
                    </tr>

                    <tr><td align="right"></td></tr>
                </table>
            </td>
        </tr>
    </table>
</div>
<asp:HiddenField ID="hfSelRoleId" runat="server" />
<asp:HiddenField ID="hfOperation" runat="server" />
<asp:HiddenField ID="hfContextId" runat="server" />
